/**
 * @file	simpleBLEperipheral.h
 * @author	chipsea
 * @brief	This file contains the Simple BLE Peripheral sample application
 *			definitions and prototypes.
 * @version 0.1
 * @date 2020-11-30
 * @copyright Copyright (c) 2020, CHIPSEA Co., Ltd.
 * @note
 */
#ifndef SIMPLEBLEPERIPHERAL_H
#define SIMPLEBLEPERIPHERAL_H

#ifdef __cplusplus
extern "C"
{
#endif

/*********************************************************************
 * INCLUDES
 */

/*********************************************************************
 * CONSTANTS
 */


// Simple BLE Peripheral Task Events
#define SBP_START_DEVICE_EVT    0x0001
#define SBP_PERIODIC_EVT        0x0002
#define SBP_RESET_EVT			0x0004

#define FIRMWARE_VERSION        0x00000004
#define HARDWARE_VERSION        0x00000001

/*********************************************************************
 * MACROS
 */
extern uint8 simpleBLEPeripheral_TaskID;

/*********************************************************************
 * FUNCTIONS
 */

/**
 * @fn		void tuya_ble_Init( uint8 task_id )
 * @brief	Task Initialization for the BLE Application
 */
extern void tuya_ble_Init( uint8 task_id );

/**
 * @fn		uint16 tuya_ble_ProcessEvent( uint8 task_id, uint16 events )
 * @brief	Task Event Processor for the BLE Application
 */
extern uint16 tuya_ble_ProcessEvent( uint8 task_id, uint16 events );

char *bdAddr2Str( uint8 *pAddr );

/*********************************************************************
*********************************************************************/

#ifdef __cplusplus
}
#endif

#endif /* SIMPLEBLEPERIPHERAL_H */
